Question 1

How would a list and a NumPy array behave when they are multiplied by 3?


Question 2

If you have a NumPy array with the shape (2,35), what does this tell you about the elements in the array?


Question 3

Suppose you have a Pandas DataFrame named df_sales containing daily sales data. The DataFrame has the following columns: year, month, day_of_month, sales_total. If you want to find the average sales_total value, which code should you use?


Question 4

You work on a DataFrame containing data about daily ice cream sales. You use the corr method to compare the avg_temp and units_sold columns, and get a result of 0.95. What does this result indicate?


Question 5

This is a relative metric in which the higher the value, the better the fit of the model.

Which evaluation model is described?


Question 6

This evaluation metric yields an absolute metric in the same unit as the label.

Which metric is described?


Question 7

You’ve just created a model object using the LinearRegression class from the scikit-learn library.

What should you do next to train the model?